import 'package:oramemo/generated/json/base/json_convert_content.dart';
import 'package:oramemo/entity/requst/voice_moveto_entity.dart';

VoiceMovetoEntity $VoiceMovetoEntityFromJson(Map<String, dynamic> json) {
  final VoiceMovetoEntity voiceMovetoEntity = VoiceMovetoEntity();
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    voiceMovetoEntity.id = id;
  }
  final String? voiceFolderId = jsonConvert.convert<String>(
      json['voiceFolderId']);
  if (voiceFolderId != null) {
    voiceMovetoEntity.voiceFolderId = voiceFolderId;
  }
  return voiceMovetoEntity;
}

Map<String, dynamic> $VoiceMovetoEntityToJson(VoiceMovetoEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['voiceFolderId'] = entity.voiceFolderId;
  return data;
}

extension VoiceMovetoEntityExtension on VoiceMovetoEntity {
  VoiceMovetoEntity copyWith({
    String? id,
    String? voiceFolderId,
  }) {
    return VoiceMovetoEntity()
      ..id = id ?? this.id
      ..voiceFolderId = voiceFolderId ?? this.voiceFolderId;
  }
}